package com.itbaizhan.controller;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {

    @RequestMapping(value = "/test" )
    @ResponseBody
    public String a(HttpServletResponse response){
//        response.setContentType("text/plain; charset=UTF-8");
//        response.setCharacterEncoding("utf-8");
        return "许佳乐";
    }
}
